/* 基础Tailwind配置 */
tailwind.config = {
    theme: {
        extend: {
            colors: {
                primary: '#1a365d', // 深蓝色主色调
                secondary: '#b7791f', // 金色辅助色
                accent: '#ecc94b', // 亮金色强调色
                dark: '#172554', // 更深的蓝色
                light: '#f8fafc', // 浅色背景
            },
            fontFamily: {
                sans: ['Inter', 'system-ui', 'sans-serif'],
            },
        }
    }
}

/* 自定义工具类 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .tab-active {
        @apply bg-primary text-white border-b-2 border-secondary;
    }
    .tab-hover {
        @apply hover:bg-primary/90 hover:text-white transition-all duration-300;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .bg-gradient-radio {
        background: linear-gradient(135deg, #1a365d 0%, #172554 100%);
    }
    .animate-fade-in {
        animation: fadeIn 0.5s ease-in-out;
    }
    .card-hover {
        @apply hover:shadow-xl hover:-translate-y-1 transition-all duration-300;
    }
}

/* 关键动画定义 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 基础页面样式 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 卡片和容器样式 */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* 响应式表格样式 */
.table-responsive {
    overflow-x: auto;
}

/* 平滑滚动支持 */
html {
    scroll-behavior: smooth;
}
